#include<bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define endl "\n"
#define Yes cout << "Yes\n";
#define No cout << "No\n";
#define YES cout << "YES\n";
#define NO cout << "NO\n";
#define _for(i, a, b) for(int i = a; i <= b; ++i)
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;

const int N = 1e5 + 10;

signed main() {
	IOS;
	set<int>ret[N];
	int n, q;
	cin >> n >> q;
	_for(i, 1, q) {
		int x, a, b;
		cin >> x >> a >> b;
		if(x == 1) {
		//	ret[a] = b;
		}
	} 
	return 0;
}

